package com.sunday.common.core.remoting.base.auth;

import com.sunday.common.core.gson.GsonUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

/**
 * @Description: 系统当前用户
 * @Author: zsy
 * @Create: 2022/10/13 14:45
 */
@Slf4j
@Data
@AllArgsConstructor
public class CurrentUserDTO implements Serializable {

    public CurrentUserDTO(Long id) {
        this.id = id;
    }

    //用户ID
    private Long id;

    private String name;

    @Override
    public String toString() {
        return GsonUtils.DEFAULT.toJson(this);
    }

}
